{% extends 'base.html' %}

{% block title %}
注册
{% endblock %}

{% block body %}
    <form action="" method="post">
        {% csrf_token %}
         <table>
             <tbody>
                <tr>
                    <td>用户名</td>
                    <td><input type="text" name="username"></td>
                </tr>
                <tr>
                    <td>密码</td>
                    <td><input type="password" name="password"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="注册"></td>
                </tr>
                <tr>
                    <ul>
                        {% for message in messages %}
                            {% if message.tags == 'info' %}
                                <li style="color: red">{{ message }}</li>
                            {% endif %}

                        {% endfor %}


                    </ul>
                </tr>
             </tbody>
         </table>
    </form>
{% endblock %}